<extend name="template/base_index" />


<block name="area_header">

</block>

<block name="area_body">
	{:W('Menus/topbar')}
	<div class="admin-main container-fluid">
		{:W('Menus/left')}
		<div class="admin-main-content">
			{:W('Menus/breadcrumb')}
			
			
			
			<!-- 带验证 form -->
			<form class="form-horizontal well validateForm">
				<input type="hidden" name="id" value="{$vo.id}" />
				<input type="hidden" name="prop_id" value="{$prop_id}" />
				<input type="hidden" name="cate_id" value="{$cate_id}" />
				<fieldset>
					<legend>
						属性值编辑
					</legend>

					<volist name="lang_list" id="vo" >
						<div class="form-group">
							<label class="col-md-2 col-lg-2 control-label">属性值[{$vo['name']}]</label>
							<div class="col-md-10 col-lg-10">
								<input type="hidden" class="required form-control input-normal"  name="ids[]" value="{$vo['value_id']}" >
								<input type="hidden" class="required form-control input-normal"  name="value_lang[]" value="{$vo['value']}"  placeholder="请输入属性值名称,请不要超过30个字">
								<input type="text"  class="required form-control input-normal"  name="value_lang_{:md5($vo['value'])}" value="{$vo['value_name']}"  placeholder="请输入属性值名称,请不要超过30个字">
								<div class="help-block">(请输入属性名称,不要超过30个字)</div>
							</div>
						</div>
					</volist>

					<div class="form-group">
						<label for="btns" class="col-md-2 col-lg-2 control-label">&nbsp;</label>
						<div class="col-lg-10 col-md-10">
							<a target-form="validateForm" class="ajax-post btn btn-primary btn-sm" href="{:U('Admin/CategoryPropvalue/edit',array('cate_id'=>$cate_id,'value_key'=>$value_key,'prop_key'=>$prop_key))}" autofocus="autofocus"><i class="fa fa-save"></i> {:L('BTN_SAVE')}</a>
							<a class="btn btn-default btn-sm" href="{:U('Admin/CategoryPropvalue/index',array('prop_key'=>$prop_key,'cate_id'=>$cate_id,'prop_id'=>$prop_id,))}"><i class="fa fa-times-circle"></i> {:L('BTN_CANCEL')}</a>
						</div>
					</div>
				</fieldset>
			</form>
			<!-- form -->
				
			
			
			
			
		</div>
		<!-- END admin-main-content -->
	</div>
		<!-- END admin-main-->
</block>

<block name="area_footer">

</block>